import request from '@/utils/request';

// 获取旅客类别
export async function getPaxType(params) {
  return request('/vipRoom/sys/vipPaxType/getPaxType', {
    params,
    method:'get'
  });
}
// 贵宾室列表
export async function getVipRoom (params) {
  return request('/vipRoom/sys/vipRoom/getVipRoomPage', {
    method: 'POST',
    data: params
  })
}
// 新增贵宾室
export async function addVipRoom (params) {
  return request('/vipRoom/sys/vipRoom/addVipRoom', {
    method: 'POST',
    data:{...params, "airport3Code": 'CTU'}
  });
}
// 编辑贵宾室
export async function updateVipRoom (params) {
  console.log(params)
  return request('/vipRoom/sys/vipRoom/updateVipRoom', {
    method: 'POST',
    data:params
  });
}
// 删除贵宾室
export async function removeVipRoom(params) {
  return request('/vipRoom/sys/vipRoom/deleteVipRoom', {
    method: 'get',
    params,
  });
}

// 获取下拉库数据航站的
export async function queryCityInfo(params) {
  return request('/dp/sys/getSelectCityInfo', {
    method: 'get',
    params,
  })
}
